﻿@model PostViewModel
@{
    var title = Model.PostItem.Title;
    var text = Model.PostItem.Text.Strip();

    ViewBag.Title = this.GetTtile(title);
}
@section head{
    <meta name="Title" content='@title' />
    <meta name="Keywords" content='@Model.PostItem.Tags.Select(x => x.Name).Stringfy()' />
    <meta name="Description" content='@(text.Length > 150 ? text.Substring(0, 150) + "[...]" : text)' />
}
@Html.Partial("Details", Model)
@Html.Action("Index", new { controller = "Comment", id = Model.PostItem.PostId })
